//
//  CC_AutoScrollingAndCircleImage_CollectionViewCell.m
//  HimalayaMountain
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CC_AutoScrollingAndCircleImage_CollectionViewCell.h"

#import "CCAutoRollingView.h" // 封装好的自动轮播图

#import "CC_CircularImageView_CollectionView.h" // 圆形image和下面是label

@interface CC_AutoScrollingAndCircleImage_CollectionViewCell ()

@property(nonatomic, retain)CCAutoRollingView *scrollingView;
@property(nonatomic, retain) CC_CircularImageView_CollectionView *handleView;

@end


@implementation CC_AutoScrollingAndCircleImage_CollectionViewCell
- (void)dealloc
{
    [_scrollingView release];
    [_handleView release];
    [super dealloc];
}


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self) {
        self.scrollingView = [[CCAutoRollingView alloc]initWithFrame:self.contentView.bounds itemSize:CGSizeMake(SCREENWIDTH, 210) collectionViewFrame:self.contentView.bounds timeInterval:3.5];
        self.scrollingView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_scrollingView];
        [_scrollingView release];
     
        self.handleView = [[CC_CircularImageView_CollectionView alloc]initWithFrame:CGRectMake(0, self.contentView.bounds.size.height - _scrollingView.bounds.size.height, SCREENWIDTH, 60)];
        self.handleView.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_handleView];
        [_handleView release];
        
    }
    
    return self;
    
}






@end
